package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 人员群组管理明细对象 MB_ERP_EQUIPMENT_PS_GROUP_DETAIL
 * 
 * @author Cheng
 * @date 2023-06-28
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_PS_GROUP_DETAIL")
@Schema(description="人员群组明细")
public class EquipmentPersonGroupDetail extends BaseEntity {

private static final long serialVersionUID=1L;


    @Id
    @Generator(policy = UUIDPolicy.class)
    @Column(name = "ID_")
    @Schema(description = "主键")
    private String id;

    @Column(name = "GROUP_ID_")
    @Schema(description = "群组")
    @Dict(dicCode = "id", dicEntity = EquipmentPersonGroup.class, dicText = "groupName")
    private String groupId;

    @Column(name = "USER_ID_")
    @Schema(description = "人员")
    private String userId;

    @Column(name = "WORK_NO_")
    @Schema(description = "工号")
    private String workNo;

    @Column(name = "IS_ENABLE_")
    @Schema(description = "是否启用")
    @Dict(dicCode = "ERP_COMMON_YESNO")
    private String isEnable;

    @Column(name = "REMARKS_")
    @Schema(description = "备注")
    private String remarks;

}
